/*
 * Copyright (c) 2001-2023 cnstrong.cn Corporation Limited. All rights reserved.
 * This software is the confidential and proprietary information of cnstrong.cn Company.
 * ("Confidential Information").
 * You shall not disclose such Confidential Information and shall use it only
 * in accordance with the terms of the license agreement you entered into with cnstrong.cn.
 */
package com.treeconfig.render.mapper;

import com.treeconfig.render.dataobject.ProjectUserDO;

import java.util.List;

/**
 * 用户mapper
 *
 * @author Braveheart
 * @version V1.0
 * @since 2023-12-29
 */
public interface MicrodomainProjectUserMapper {

    int insert(ProjectUserDO record);

    ProjectUserDO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ProjectUserDO record);

    ProjectUserDO selectByUserAndCode(ProjectUserPO userPO);

    String selectDefaultProjectByOa(String oa);

    List<ProjectUserDO> listProjectUser(ListProjectUserPO po);

    int listProjectUserCount(ListProjectUserPO po);

    int deleteById(Long id);

    List<ProjectUserDO> selectByUserOa(String oa);

    int setDefaultProject(Long id);

    int cancelDefaultProject(Long id);

    Long selectDefaultProjectIdByOa(String oa);

}
